<cfcomponent>
	
	<cffunction name="addPhoto" access="remote" returntype="void" output="false">
		<cfargument name="photo" type="Photo" />
		<cflog text="[RemoteService]: Photo received." >
		<cfset arrayAppend(application.photoCache, arguments.photo) />
	</cffunction>
	
	<cffunction name="listPhotos" access="remote" returntype="array" output="false">
		<cfreturn application.photoCache />
	</cffunction>
	
	<cffunction name="removePhoto" access="remote" returntype="void" output="false">
		<cfargument name="index" type="numeric" />
		<cfset arrayDeleteAt(application.photoCache, arguments.index) />
	</cffunction>
	
</cfcomponent>